<html>
<head>
<title>Foursquare Notifications - Options</title>
<style>
body {
  font-family: 'Helvetica Neue', Helvetica, Verdana, Arial, sans-serif;
  font-size: 11pt;
  background-color: #eee;
}

ul {
  margin-top: 0;
  padding-left: 30px;
}

h2 {
  margin-bottom: 3px;
  margin-top: 10px;
  text-align: center;
}

div#content {
  width: 400px;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid black;
  border-radius: 10px;

  background-color: white;
  margin-top: 50px;
}

p#protip {
  margin: 5px;
  padding: 4px;
}

p#authWarning {
  background-color: #f00;
  color: #fff;
  padding: 10px;
  display: none;
}

p#authWarning a {
  color: #ff69b4;
}

img {
  width: 100%;
}

a#src {
  font-size: 8pt;
  margin-left: 300px;
}

button#reset {
  position: fixed;
  bottom: 10px;
  right: 10px;
}

div#filterContainer {
  text-select: none;
  style: display:none;
  max-height: 300px;
  overflow-y: scroll;
  margin-top: 10px;
  border: 1px solid #ccc;
}

div#filterContainer span {
  text-decoration: underline;
  color: blue;
  cursor: pointer;
}

div#filterContainer div.friend {
  padding: 6px 0;
}

div#filterContainer div.friend:hover {
  background-color: #eee;
}

div#filterContainer div.friend input {
  margin-left: 6px;
}

div#filterContainer div.friend img {
  width: 48px;
  height: 48px;
  vertical-align: middle;
  padding-left: 6px;
  padding-right: 6px;
}

div#filterContainer div.friend label {
  display: inline-block;
  width: 360px;
  height: 48px;
}
</style>
<script type="text/javascript" src="utils.js"></script>
</head>
<body>
<div id="content">
  <h2>Options</h2>

  <p id="authWarning"><b>Warning:</b> You have not authorized this extension to
      see your friends' checkins!
      <a href="#">Click here</a> to fix this problem</p>

  <ul>
    <li>
      <label for="interval">Polling interval (in minutes)</label>
      <input id="interval" name="interval" type="range" min="1" max="60" value="15" />
      <span id="intervalOut">15</span>
    </li>

    <li>
      <label for="sound">Play a <a id="playSound" href="#">sound</a> on new checkins</label>
      <input id="sound" name="sound" type="checkbox"/>
    </li>

    <li>
      <label for="comments">Notify on new comments and photos</label>
      <input id="comments" name="comments" type="checkbox" />
    </li>

    <li>
      <label for="nearby">Only notify on nearby checkins</label>
      <input id="nearby" name="nearby" type="checkbox" />
    </li>

    <li>
      <label for="filter">Only notify on certain friends' checkins</label>
      <input id="filter" name="filter" type="checkbox" />
    </li>
  </ul>

  <div id="filterContainer" style="display:none;">
    Select <span id="selectAll">all</span> | <span id="selectNone">none</span>
  </div>

  <img src="images/poweredby.png" alt="Powered by Foursquare" />
  <a id="src" target="_blank"
      href="https://code.google.com/p/chrome-4sq">See the code!</a>
  </div>

  <div id="debug">
    <button id="reset">Factory Reset</button>
  </div>
</body>
<script type="text/javascript" src="options.js"></script>
</html>